import java.util.Scanner;


public class Array {
public static void main(String args[]){
	int[] x=new int[15];
	System.out.println("PLease put in the numbers you which to determine are prime");
	for (int y=0; y<15; y++){
		Scanner in=new Scanner(System.in);
		int z=in.nextInt();
		x[y]=z;
	}
	boolean is_prime=true;
	
	
	for (int h=0; h<15; h++){
		if (x[h]==1){
			is_prime=false;
		}
		//current value is x[h]
		//for values lower than x[h] check if you can divide x[h]
			for(int j=2; j<x[h]; j++){
				if (x[h]%j==0){
					is_prime=false;
				}
			}
			if (is_prime){
				System.out.println(x[h]);
			}
			is_prime=true;
		}
}
}

